<?php
//ob_clean();
echo implode( ';', array_keys( Database::$stockArticleSet ) );
$list = $this->getTplVal( 'stockArticleList' );
$fieldSet = array_values( Database::$stockArticleSet );
$content = '';
foreach ( $list AS $item ) {
    foreach ( $fieldSet AS $field ) {
        $delimiter = ';';
        if (next($fieldSet) == false){
            $delimiter = '';
        }
        $content .=  $item[$field];
    }
}
echo $content;
?>

